#ifndef X11UTILS_H
#define X11UTILS_H

#include <QList>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>

class X11Utils
{
public:
    Display *xDisplay = nullptr;

    X11Utils();

    Display *disp();
    void cleanUpDisplay();
    bool ewmhIsSupported();
    QList<Window> getTopLevelWindows();
    QString getWindowAtom(Window win, const char *atom);
    QString getWindowName(Window win);
};

#endif // X11UTILS_H
